package com.jfzt.controller;

import com.jfzt.service.IElasticService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: shunpeng.hu
 * @date: 2024/3/5 10:42
 */
@RestController
public class ESController {

    @Resource
    private IElasticService elasticService;

    /**
     * 并发请求测试查询
     * @return
     */
    @GetMapping("/getUser")
    public String getUser(){
        return elasticService.quaryAll();
    }
}
